// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldJunctionGroup.h"
#include "WorldEntityReferencing.h"

WORLD_ENTITY_META_DEFINE(FWorldJunctionGroup, FWorldEntity);

FWorldJunctionGroup::FWorldJunctionGroup()
	: Super()
	, Name(this, "")
	, Type(this, FWorldJunctionGroupType::Unknown)
	, JunctionReference(this)
{}

FWorldJunctionGroup::FWorldJunctionGroup(const json& j)
	: Super(j)
	, Name(this, "", _xml, "name")
	, Type(this, FWorldJunctionGroupType::Unknown, _xml, "type")
	, JunctionReference(this, _xml, "junctionReference")
{}

FWorldJunctionGroup::~FWorldJunctionGroup()
{}

void FWorldJunctionGroup::Resolve(FWorldEntityReferencing& referencing)
{
	Super::Resolve(referencing);
	referencing
		.Resolve(JunctionReference);
}
